package com.jxk.jms.security.controller;

import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName : HelloController  //类名
 * @Description :   //描述
 * @Author : jxk  //作者
 * @Date: 2020-09-16 09:48  //时间
 */
@RestController
public class HelloController {
    @GetMapping("/hello")
    public String hello() {
        return "hello";
    }
    @GetMapping("/admin/hello")
    public String admin() {
        return "admin";
    }

    @GetMapping("/user/hello")
    public String user() {
        return "user";
    }
    @GetMapping("/getinfo")
    public Authentication getAuthentication(Authentication authentication){
        return  authentication;
    }
}